package com.drawm.adt.pseudoCodeEditor {
	import flash.events.Event;
	import flash.display.Sprite;

	/**
	 * @author Drawm
	 */
	public class App extends Sprite {
		
		private var _model:Model;
		private var _view:View;
		private var _controler:Controler;
		
		
		public function App() {
			
			this.addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
		}

		private function onAddedToStage(event : Event) : void {
			event.target.removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
			
			_model = new Model();
			_view = new View(_model);
			addChild(_view);
			_controler = new Controler(this,_model);
			
			_controler.start();
		}
	}
}
